package com.swt.draw.example;

import java.util.ArrayList;
import java.util.List;

public class PostExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PostExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPostNoIsNull() {
            addCriterion("post_no is null");
            return (Criteria) this;
        }

        public Criteria andPostNoIsNotNull() {
            addCriterion("post_no is not null");
            return (Criteria) this;
        }

        public Criteria andPostNoEqualTo(String value) {
            addCriterion("post_no =", value, "postNo");
            return (Criteria) this;
        }

        public Criteria andPostNoNotEqualTo(String value) {
            addCriterion("post_no <>", value, "postNo");
            return (Criteria) this;
        }

        public Criteria andPostNoGreaterThan(String value) {
            addCriterion("post_no >", value, "postNo");
            return (Criteria) this;
        }

        public Criteria andPostNoGreaterThanOrEqualTo(String value) {
            addCriterion("post_no >=", value, "postNo");
            return (Criteria) this;
        }

        public Criteria andPostNoLessThan(String value) {
            addCriterion("post_no <", value, "postNo");
            return (Criteria) this;
        }

        public Criteria andPostNoLessThanOrEqualTo(String value) {
            addCriterion("post_no <=", value, "postNo");
            return (Criteria) this;
        }

        public Criteria andPostNoLike(String value) {
            addCriterion("post_no like", value, "postNo");
            return (Criteria) this;
        }

        public Criteria andPostNoNotLike(String value) {
            addCriterion("post_no not like", value, "postNo");
            return (Criteria) this;
        }

        public Criteria andPostNoIn(List<String> values) {
            addCriterion("post_no in", values, "postNo");
            return (Criteria) this;
        }

        public Criteria andPostNoNotIn(List<String> values) {
            addCriterion("post_no not in", values, "postNo");
            return (Criteria) this;
        }

        public Criteria andPostNoBetween(String value1, String value2) {
            addCriterion("post_no between", value1, value2, "postNo");
            return (Criteria) this;
        }

        public Criteria andPostNoNotBetween(String value1, String value2) {
            addCriterion("post_no not between", value1, value2, "postNo");
            return (Criteria) this;
        }

        public Criteria andPostNameIsNull() {
            addCriterion("post_name is null");
            return (Criteria) this;
        }

        public Criteria andPostNameIsNotNull() {
            addCriterion("post_name is not null");
            return (Criteria) this;
        }

        public Criteria andPostNameEqualTo(String value) {
            addCriterion("post_name =", value, "postName");
            return (Criteria) this;
        }

        public Criteria andPostNameNotEqualTo(String value) {
            addCriterion("post_name <>", value, "postName");
            return (Criteria) this;
        }

        public Criteria andPostNameGreaterThan(String value) {
            addCriterion("post_name >", value, "postName");
            return (Criteria) this;
        }

        public Criteria andPostNameGreaterThanOrEqualTo(String value) {
            addCriterion("post_name >=", value, "postName");
            return (Criteria) this;
        }

        public Criteria andPostNameLessThan(String value) {
            addCriterion("post_name <", value, "postName");
            return (Criteria) this;
        }

        public Criteria andPostNameLessThanOrEqualTo(String value) {
            addCriterion("post_name <=", value, "postName");
            return (Criteria) this;
        }

        public Criteria andPostNameLike(String value) {
            addCriterion("post_name like", value, "postName");
            return (Criteria) this;
        }

        public Criteria andPostNameNotLike(String value) {
            addCriterion("post_name not like", value, "postName");
            return (Criteria) this;
        }

        public Criteria andPostNameIn(List<String> values) {
            addCriterion("post_name in", values, "postName");
            return (Criteria) this;
        }

        public Criteria andPostNameNotIn(List<String> values) {
            addCriterion("post_name not in", values, "postName");
            return (Criteria) this;
        }

        public Criteria andPostNameBetween(String value1, String value2) {
            addCriterion("post_name between", value1, value2, "postName");
            return (Criteria) this;
        }

        public Criteria andPostNameNotBetween(String value1, String value2) {
            addCriterion("post_name not between", value1, value2, "postName");
            return (Criteria) this;
        }

        public Criteria andPostStatusIsNull() {
            addCriterion("post_status is null");
            return (Criteria) this;
        }

        public Criteria andPostStatusIsNotNull() {
            addCriterion("post_status is not null");
            return (Criteria) this;
        }

        public Criteria andPostStatusEqualTo(Short value) {
            addCriterion("post_status =", value, "postStatus");
            return (Criteria) this;
        }

        public Criteria andPostStatusNotEqualTo(Short value) {
            addCriterion("post_status <>", value, "postStatus");
            return (Criteria) this;
        }

        public Criteria andPostStatusGreaterThan(Short value) {
            addCriterion("post_status >", value, "postStatus");
            return (Criteria) this;
        }

        public Criteria andPostStatusGreaterThanOrEqualTo(Short value) {
            addCriterion("post_status >=", value, "postStatus");
            return (Criteria) this;
        }

        public Criteria andPostStatusLessThan(Short value) {
            addCriterion("post_status <", value, "postStatus");
            return (Criteria) this;
        }

        public Criteria andPostStatusLessThanOrEqualTo(Short value) {
            addCriterion("post_status <=", value, "postStatus");
            return (Criteria) this;
        }

        public Criteria andPostStatusIn(List<Short> values) {
            addCriterion("post_status in", values, "postStatus");
            return (Criteria) this;
        }

        public Criteria andPostStatusNotIn(List<Short> values) {
            addCriterion("post_status not in", values, "postStatus");
            return (Criteria) this;
        }

        public Criteria andPostStatusBetween(Short value1, Short value2) {
            addCriterion("post_status between", value1, value2, "postStatus");
            return (Criteria) this;
        }

        public Criteria andPostStatusNotBetween(Short value1, Short value2) {
            addCriterion("post_status not between", value1, value2, "postStatus");
            return (Criteria) this;
        }

        public Criteria andPostCreateTimeIsNull() {
            addCriterion("post_create_time is null");
            return (Criteria) this;
        }

        public Criteria andPostCreateTimeIsNotNull() {
            addCriterion("post_create_time is not null");
            return (Criteria) this;
        }

        public Criteria andPostCreateTimeEqualTo(String value) {
            addCriterion("post_create_time =", value, "postCreateTime");
            return (Criteria) this;
        }

        public Criteria andPostCreateTimeNotEqualTo(String value) {
            addCriterion("post_create_time <>", value, "postCreateTime");
            return (Criteria) this;
        }

        public Criteria andPostCreateTimeGreaterThan(String value) {
            addCriterion("post_create_time >", value, "postCreateTime");
            return (Criteria) this;
        }

        public Criteria andPostCreateTimeGreaterThanOrEqualTo(String value) {
            addCriterion("post_create_time >=", value, "postCreateTime");
            return (Criteria) this;
        }

        public Criteria andPostCreateTimeLessThan(String value) {
            addCriterion("post_create_time <", value, "postCreateTime");
            return (Criteria) this;
        }

        public Criteria andPostCreateTimeLessThanOrEqualTo(String value) {
            addCriterion("post_create_time <=", value, "postCreateTime");
            return (Criteria) this;
        }

        public Criteria andPostCreateTimeLike(String value) {
            addCriterion("post_create_time like", value, "postCreateTime");
            return (Criteria) this;
        }

        public Criteria andPostCreateTimeNotLike(String value) {
            addCriterion("post_create_time not like", value, "postCreateTime");
            return (Criteria) this;
        }

        public Criteria andPostCreateTimeIn(List<String> values) {
            addCriterion("post_create_time in", values, "postCreateTime");
            return (Criteria) this;
        }

        public Criteria andPostCreateTimeNotIn(List<String> values) {
            addCriterion("post_create_time not in", values, "postCreateTime");
            return (Criteria) this;
        }

        public Criteria andPostCreateTimeBetween(String value1, String value2) {
            addCriterion("post_create_time between", value1, value2, "postCreateTime");
            return (Criteria) this;
        }

        public Criteria andPostCreateTimeNotBetween(String value1, String value2) {
            addCriterion("post_create_time not between", value1, value2, "postCreateTime");
            return (Criteria) this;
        }

        public Criteria andPostCreateByIsNull() {
            addCriterion("post_create_by is null");
            return (Criteria) this;
        }

        public Criteria andPostCreateByIsNotNull() {
            addCriterion("post_create_by is not null");
            return (Criteria) this;
        }

        public Criteria andPostCreateByEqualTo(String value) {
            addCriterion("post_create_by =", value, "postCreateBy");
            return (Criteria) this;
        }

        public Criteria andPostCreateByNotEqualTo(String value) {
            addCriterion("post_create_by <>", value, "postCreateBy");
            return (Criteria) this;
        }

        public Criteria andPostCreateByGreaterThan(String value) {
            addCriterion("post_create_by >", value, "postCreateBy");
            return (Criteria) this;
        }

        public Criteria andPostCreateByGreaterThanOrEqualTo(String value) {
            addCriterion("post_create_by >=", value, "postCreateBy");
            return (Criteria) this;
        }

        public Criteria andPostCreateByLessThan(String value) {
            addCriterion("post_create_by <", value, "postCreateBy");
            return (Criteria) this;
        }

        public Criteria andPostCreateByLessThanOrEqualTo(String value) {
            addCriterion("post_create_by <=", value, "postCreateBy");
            return (Criteria) this;
        }

        public Criteria andPostCreateByLike(String value) {
            addCriterion("post_create_by like", value, "postCreateBy");
            return (Criteria) this;
        }

        public Criteria andPostCreateByNotLike(String value) {
            addCriterion("post_create_by not like", value, "postCreateBy");
            return (Criteria) this;
        }

        public Criteria andPostCreateByIn(List<String> values) {
            addCriterion("post_create_by in", values, "postCreateBy");
            return (Criteria) this;
        }

        public Criteria andPostCreateByNotIn(List<String> values) {
            addCriterion("post_create_by not in", values, "postCreateBy");
            return (Criteria) this;
        }

        public Criteria andPostCreateByBetween(String value1, String value2) {
            addCriterion("post_create_by between", value1, value2, "postCreateBy");
            return (Criteria) this;
        }

        public Criteria andPostCreateByNotBetween(String value1, String value2) {
            addCriterion("post_create_by not between", value1, value2, "postCreateBy");
            return (Criteria) this;
        }

        public Criteria andPostExtend1IsNull() {
            addCriterion("post_extend1 is null");
            return (Criteria) this;
        }

        public Criteria andPostExtend1IsNotNull() {
            addCriterion("post_extend1 is not null");
            return (Criteria) this;
        }

        public Criteria andPostExtend1EqualTo(String value) {
            addCriterion("post_extend1 =", value, "postExtend1");
            return (Criteria) this;
        }

        public Criteria andPostExtend1NotEqualTo(String value) {
            addCriterion("post_extend1 <>", value, "postExtend1");
            return (Criteria) this;
        }

        public Criteria andPostExtend1GreaterThan(String value) {
            addCriterion("post_extend1 >", value, "postExtend1");
            return (Criteria) this;
        }

        public Criteria andPostExtend1GreaterThanOrEqualTo(String value) {
            addCriterion("post_extend1 >=", value, "postExtend1");
            return (Criteria) this;
        }

        public Criteria andPostExtend1LessThan(String value) {
            addCriterion("post_extend1 <", value, "postExtend1");
            return (Criteria) this;
        }

        public Criteria andPostExtend1LessThanOrEqualTo(String value) {
            addCriterion("post_extend1 <=", value, "postExtend1");
            return (Criteria) this;
        }

        public Criteria andPostExtend1Like(String value) {
            addCriterion("post_extend1 like", value, "postExtend1");
            return (Criteria) this;
        }

        public Criteria andPostExtend1NotLike(String value) {
            addCriterion("post_extend1 not like", value, "postExtend1");
            return (Criteria) this;
        }

        public Criteria andPostExtend1In(List<String> values) {
            addCriterion("post_extend1 in", values, "postExtend1");
            return (Criteria) this;
        }

        public Criteria andPostExtend1NotIn(List<String> values) {
            addCriterion("post_extend1 not in", values, "postExtend1");
            return (Criteria) this;
        }

        public Criteria andPostExtend1Between(String value1, String value2) {
            addCriterion("post_extend1 between", value1, value2, "postExtend1");
            return (Criteria) this;
        }

        public Criteria andPostExtend1NotBetween(String value1, String value2) {
            addCriterion("post_extend1 not between", value1, value2, "postExtend1");
            return (Criteria) this;
        }

        public Criteria andPostExtend2IsNull() {
            addCriterion("post_extend2 is null");
            return (Criteria) this;
        }

        public Criteria andPostExtend2IsNotNull() {
            addCriterion("post_extend2 is not null");
            return (Criteria) this;
        }

        public Criteria andPostExtend2EqualTo(String value) {
            addCriterion("post_extend2 =", value, "postExtend2");
            return (Criteria) this;
        }

        public Criteria andPostExtend2NotEqualTo(String value) {
            addCriterion("post_extend2 <>", value, "postExtend2");
            return (Criteria) this;
        }

        public Criteria andPostExtend2GreaterThan(String value) {
            addCriterion("post_extend2 >", value, "postExtend2");
            return (Criteria) this;
        }

        public Criteria andPostExtend2GreaterThanOrEqualTo(String value) {
            addCriterion("post_extend2 >=", value, "postExtend2");
            return (Criteria) this;
        }

        public Criteria andPostExtend2LessThan(String value) {
            addCriterion("post_extend2 <", value, "postExtend2");
            return (Criteria) this;
        }

        public Criteria andPostExtend2LessThanOrEqualTo(String value) {
            addCriterion("post_extend2 <=", value, "postExtend2");
            return (Criteria) this;
        }

        public Criteria andPostExtend2Like(String value) {
            addCriterion("post_extend2 like", value, "postExtend2");
            return (Criteria) this;
        }

        public Criteria andPostExtend2NotLike(String value) {
            addCriterion("post_extend2 not like", value, "postExtend2");
            return (Criteria) this;
        }

        public Criteria andPostExtend2In(List<String> values) {
            addCriterion("post_extend2 in", values, "postExtend2");
            return (Criteria) this;
        }

        public Criteria andPostExtend2NotIn(List<String> values) {
            addCriterion("post_extend2 not in", values, "postExtend2");
            return (Criteria) this;
        }

        public Criteria andPostExtend2Between(String value1, String value2) {
            addCriterion("post_extend2 between", value1, value2, "postExtend2");
            return (Criteria) this;
        }

        public Criteria andPostExtend2NotBetween(String value1, String value2) {
            addCriterion("post_extend2 not between", value1, value2, "postExtend2");
            return (Criteria) this;
        }

        public Criteria andPostRemarkIsNull() {
            addCriterion("post_remark is null");
            return (Criteria) this;
        }

        public Criteria andPostRemarkIsNotNull() {
            addCriterion("post_remark is not null");
            return (Criteria) this;
        }

        public Criteria andPostRemarkEqualTo(String value) {
            addCriterion("post_remark =", value, "postRemark");
            return (Criteria) this;
        }

        public Criteria andPostRemarkNotEqualTo(String value) {
            addCriterion("post_remark <>", value, "postRemark");
            return (Criteria) this;
        }

        public Criteria andPostRemarkGreaterThan(String value) {
            addCriterion("post_remark >", value, "postRemark");
            return (Criteria) this;
        }

        public Criteria andPostRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("post_remark >=", value, "postRemark");
            return (Criteria) this;
        }

        public Criteria andPostRemarkLessThan(String value) {
            addCriterion("post_remark <", value, "postRemark");
            return (Criteria) this;
        }

        public Criteria andPostRemarkLessThanOrEqualTo(String value) {
            addCriterion("post_remark <=", value, "postRemark");
            return (Criteria) this;
        }

        public Criteria andPostRemarkLike(String value) {
            addCriterion("post_remark like", value, "postRemark");
            return (Criteria) this;
        }

        public Criteria andPostRemarkNotLike(String value) {
            addCriterion("post_remark not like", value, "postRemark");
            return (Criteria) this;
        }

        public Criteria andPostRemarkIn(List<String> values) {
            addCriterion("post_remark in", values, "postRemark");
            return (Criteria) this;
        }

        public Criteria andPostRemarkNotIn(List<String> values) {
            addCriterion("post_remark not in", values, "postRemark");
            return (Criteria) this;
        }

        public Criteria andPostRemarkBetween(String value1, String value2) {
            addCriterion("post_remark between", value1, value2, "postRemark");
            return (Criteria) this;
        }

        public Criteria andPostRemarkNotBetween(String value1, String value2) {
            addCriterion("post_remark not between", value1, value2, "postRemark");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}